package com.cloudkinto.service.operate;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cloudkinto.common.web.PageResult;
import com.cloudkinto.entity.OperateRecordDo;
import com.cloudkinto.enumType.operate.OperateTypeEnum;
import com.cloudkinto.vo.operate.OperateRes;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * service接口
 * </p>
 *
 * @author zhangyy
 * @since 2020-07-09
 */
public interface OperateRecordService extends IService<OperateRecordDo> {

    PageResult getStockToPlatformRecord(Map<String,  Object> map);

    List<OperateRes> getOperateList(Long thirdId, OperateTypeEnum type);

    boolean operateAddRecord(String content, Long thirdId, Long userId, OperateTypeEnum type);

    boolean operateAddRecord(String content, List<String> thirdIds, Long userId, OperateTypeEnum type);

    boolean operateAddRecord(String content, Long thirdId, Long userId, OperateTypeEnum type, String detail);

    boolean operateAddRecordAndValue(String content, String contentValue, Long thirdId, Long userId, String username, OperateTypeEnum type);

    boolean operateAddRecordAndValue(String content, String contentValue, Long thirdId, Long userId, String username, OperateTypeEnum type, Date operateTime);

    void insertBatchMy(List<OperateRecordDo> list);

}
